package nix.anim.sso.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 页面展示Controller
 */
@Controller
public class PageController {
	
	@RequestMapping("/")
	public String showIndex() {
		return "index";
	}
	
	@RequestMapping("/login.html")
	public String showLogin(String url, Model model) {
		model.addAttribute("redirect", url);
		return "login";
	}
}
